#!/bin/bash
source /etc/profile;
pro_deploy_path="/web/sangong/publish";
pro_jar="/web/sangong/sangong/target/sangong-0.0.1-SNAPSHOT.jar";
pro_backjar="/web/sangong/publish/sangong-0.0.1-SNAPSHOT.jar.back";
pro_runjar="/web/sangong/publish/sangong-0.0.1-SNAPSHOT.jar";
if [  -f "${pro_runjar}" ];then
cp  ${pro_runjar} ${pro_backjar};
fi
cp ${pro_jar} ${pro_deploy_path};
